<?php

/**
 * \file
 * Classe `Text`.
 */

namespace pilar\Entities /* \cond */ ; /* \endcond */
{

/**
 * Membre de zone de texte.
 *
 * \since 09/10/2008
 * \author Matthieu OVIEDO <matthieu.oviedo@gmail.com>
 */
class Text extends Member {

protected function loadDefaultParams() {
 parent::loadDefaultParams();

 $this->params->define(array(
  'caseSensitive' => false
 ));

 $this->params->set(array(
  'formClass' => '\\pilar\\SimpleFormMembers\\TextArea'
 ));
}


protected function initialize() {
 parent::initialize();

 $this->addField(
  new \pilar\Entities\Fields\Text(array(
   'caseSensitive' => $this->param('caseSensitive')
  ))
 );
}


} // Class.

} // Namespace.

?>
